package com.wootion.dizhi.service;

import cn.hutool.http.server.HttpServerResponse;
import com.alibaba.fastjson.JSONObject;
import com.wootion.dizhi.entity.ConfigType;
import com.wootion.dizhi.entity.Configuration;
import com.wootion.dizhi.entity.Cylinder;
import com.wootion.dizhi.exception.BusinessException;
import com.wootion.dizhi.response.Result;
import com.wootion.dizhi.vo.Condition;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface DataCollectionService {
    Result historicalList(Condition condition);
    Result historicalBasicInfo(String id);
    Result historicalGraph(String id,String hour);
    Result historicalRawData(Condition condition);
    Result historicalExport(String id);
    Result rawData(Condition condition);
    Result graph(String address,String experiment);
    Result graphHour(String address,String experiment,String hour);
    Result insertConfigType(ConfigType configType);
    Result findByConfigTypeId(String id);
    Result deleteConfigTypeId(String id);
    Result updateConfigType(ConfigType configType);
    Result configTypeList(Condition condition);
    Result configTypeListOptions();
    Result atmosphereList(Condition condition);
    Result atmosphereExport(MultipartFile multipartFile) throws BusinessException;
    Result atmosphereExportSave(String resId, List<Cylinder> cylinders);
    Result atmosphereExportList(Condition condition);
    Result atmosphereExportGraph(String id);
    Result atmosphereImport(String id, HttpServletResponse response);

    Result ceegetwarning();

    Result isread(String id);

    Boolean needSend();

    Result impost(MultipartFile multipartFile);

    Result predictionCreate(JSONObject jsonObject);
}
